﻿using System;
using System.Collections.Generic;
using System.Text;
using XMK.Framework.Model.Cond;

namespace XMK.Framework.Model
{
    public interface IDataService
    {
        /// <summary>
        /// 取多个
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="cond"></param>
        /// <returns></returns>
        CommonDataInfos<T> GetDatas<T>(CommonDataCond cond);
        /// <summary>
        /// 取单个
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="cond"></param>
        /// <returns></returns>
        CommonDataInfo<T> GetData<T>(CommonDataCond cond);
    }
}
